<section class="content-header">
	<h1>
		用户管理
		<small>数据维护</small>
	</h1>
</section>
<section class="content" xmlns:th="http://www.thymeleaf.org">
	<div class="row">
    	<div class="col-xs-12">
        	<div class="box">
	            <div class="box-body">
		            <form id="bpUserForm" role="form" class="form-horizontal">
						<div class="form-group">
							<label class="col-md-3 control-label">用户头像:</label>
							<div class="fileinput fileinput-new" data-provides="fileinput">
								<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
									<img th:if="${bpUser?.userPhoto}" th:src="@{'/common/showImage?filePath='+${bpUser?.userPhoto}}"/>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">用户名:</label>
							<div class="col-md-5">
								<input type="text" name="userName" class="form-control" th:value="${bpUser?.userName}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">昵称:</label>
							<div class="col-md-5">
								<input type="text" name="nickName" class="form-control" th:value="${bpUser?.nickName}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">手机号码:</label>
							<div class="col-md-5">
								<input type="text" name="phone" class="form-control" th:value="${bpUser?.phone}"  maxlength="20"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">电子邮箱:</label>
							<div class="col-md-5">
								<input type="text" name="email" class="form-control" th:value="${bpUser?.email}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">姓名:</label>
							<div class="col-md-5">
								<input type="text" name="name" class="form-control" th:value="${bpUser?.name}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">性别:</label>
							<div class="col-md-5">
								<select name="sex" class="form-control" th:value="${bpUser?.sex}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.sex == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.sex == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.sex == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">出生日期:</label>
							<div class="col-md-5">
								<input type="text" name="birthday" class="form-control" th:value="${bpUser?.birthday}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">国家:</label>
							<div class="col-md-5">
								<input type="text" name="country" class="form-control" th:value="${bpUser?.country}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">省:</label>
							<div class="col-md-5">
								<select name="province" class="form-control" th:value="${bpUser?.province}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.province == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.province == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.province == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">市:</label>
							<div class="col-md-5">
								<select name="city" class="form-control" th:value="${bpUser?.city}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.city == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.city == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.city == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">区县:</label>
							<div class="col-md-5">
								<select name="county" class="form-control" th:value="${bpUser?.county}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.county == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.county == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.county == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">地址:</label>
							<div class="col-md-5">
								<input type="text" name="address" class="form-control" th:value="${bpUser?.address}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">用户类型:</label>
							<div class="col-md-5">
								<select name="userType" class="form-control" th:value="${bpUser?.userType}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.userType == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.userType == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.userType == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">用户状态:</label>
							<div class="col-md-5">
								<select name="userStatus" class="form-control" th:value="${bpUser?.userStatus}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.userStatus == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.userStatus == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.userStatus == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">注册类型:</label>
							<div class="col-md-5">
								<select name="registerType" class="form-control" th:value="${bpUser?.registerType}" >
									<option value="">请选择</option>
									<option value="1" th:selected="${bpUser?.registerType == '1'}">Option 1</option>
									<option value="2" th:selected="${bpUser?.registerType == '2'}">Option 2</option>
									<option value="3" th:selected="${bpUser?.registerType == '3'}">Option 3</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">注册邀请码:</label>
							<div class="col-md-5">
								<input type="text" name="registerInvitationCode" class="form-control" th:value="${bpUser?.registerInvitationCode}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">注册时间:</label>
							<div class="col-md-5">
								<input type="text" name="registerTime" class="form-control" th:value="${bpUser?.registerTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">注册设备:</label>
							<div class="col-md-5">
								<input type="text" name="registerDevice" class="form-control" th:value="${bpUser?.registerDevice}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">注册ip地址:</label>
							<div class="col-md-5">
								<input type="text" name="registerIp" class="form-control" th:value="${bpUser?.registerIp}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">首次登录时间:</label>
							<div class="col-md-5">
								<input type="text" name="firstLoginTime" class="form-control" th:value="${bpUser?.firstLoginTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">首次登录地点:</label>
							<div class="col-md-5">
								<input type="text" name="firstLoginAddress" class="form-control" th:value="${bpUser?.firstLoginAddress}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">首次登录ip:</label>
							<div class="col-md-5">
								<input type="text" name="firstLoginIp" class="form-control" th:value="${bpUser?.firstLoginIp}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">上一次登录时间:</label>
							<div class="col-md-5">
								<input type="text" name="lastLoginTime" class="form-control" th:value="${bpUser?.lastLoginTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">上一次登录地点:</label>
							<div class="col-md-5">
								<input type="text" name="lastLoginAddress" class="form-control" th:value="${bpUser?.lastLoginAddress}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">上一次登录ip:</label>
							<div class="col-md-5">
								<input type="text" name="lastLoginIp" class="form-control" th:value="${bpUser?.lastLoginIp}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">最后登录时间:</label>
							<div class="col-md-5">
								<input type="text" name="finalLoginTime" class="form-control" th:value="${bpUser?.finalLoginTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">最后登录地点:</label>
							<div class="col-md-5">
								<input type="text" name="finalLoginAddress" class="form-control" th:value="${bpUser?.finalLoginAddress}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">最后登录ip:</label>
							<div class="col-md-5">
								<input type="text" name="finalLoginIp" class="form-control" th:value="${bpUser?.finalLoginIp}"  maxlength="50"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">封禁理由:</label>
							<div class="col-md-5">
								<input type="text" name="bannedReason" class="form-control" th:value="${bpUser?.bannedReason}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">封禁时间:</label>
							<div class="col-md-5">
								<input type="text" name="bannedTime" class="form-control" th:value="${bpUser?.bannedTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">解封理由:</label>
							<div class="col-md-5">
								<input type="text" name="deblockingReason" class="form-control" th:value="${bpUser?.deblockingReason}"  maxlength="255"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">解封时间:</label>
							<div class="col-md-5">
								<input type="text" name="deblockingTime" class="form-control" th:value="${bpUser?.deblockingTime}"  maxlength="0"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">数据有效性:</label>
							<div class="col-md-5">
								<input type="text" name="symbol" class="form-control" th:value="${bpUser?.symbol}"  maxlength="10"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">备注说明:</label>
							<div class="col-md-5">
								<input type="text" name="remarks" class="form-control" th:value="${bpUser?.remarks}"  maxlength="255"/>
							</div>
						</div>
					    <input type="hidden" name="id" th:value="${bpUser?.id}"/>
		            </form>
	            </div>
	            <div class="box-footer">
	            	<div class="col-md-9 col-md-offset-3">
						<button type="button" class="btn btn-primary" onclick="save()">保存</button>
			          	<button type="button" class="btn btn-default" onclick="forwardPage('/bpUser/init')">取消</button>
			        </div>
	            </div>
	        </div>
		</div>
	</div>
	<script th:src="@{/js/bp/bpUser/bpUser.js}"></script>
</section>